package cn.com.dcsgo.util;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * ConstantPropertiesUtil
 *
 * @author Dcsgo
 * @since 2025/4/23 22:06
 */
@Component
public class ConstantPropertiesUtil implements InitializingBean {
    @Value("${wx.app-id}")
    private String appId;

    @Value("${wx.app-secret}")
    private String appSecret;

    public static String WX_APP_ID;
    public static String WX_APP_SECRET;

    @Override
    public void afterPropertiesSet() {
        WX_APP_ID = appId;
        WX_APP_SECRET = appSecret;
    }
}
